FROM openjdk:18-jdk-alpine3.13
MAINTAINER xuyue

ENV PYTHONUNBUFFERED=1
RUN  apk add --upgrade python2-dev

ENV PARAMS=""

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir /datax
RUN mkdir /datax/log
ADD src/main/resources/datax /datax/datax
ADD target/datax-job-executor-springboot-*.jar /datax/app.jar

ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /datax//app.jar $PARAMS"]

